package user;
import operation.*;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 62536
 * Date: 2023-11-15
 * Time: 23:57
 */
public abstract class User {
    protected String name;
    protected IOPeration[] ioPerations;

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();

    public void doOperation(int choice, BookList bookList) {
        IOPeration ioPeration = this.ioPerations[choice];
        ioPeration.work(bookList);
    }
}